#include "randInt.h"

int randInt(int min, int max)
{
	if ((max-min)==0)
		return min;

	if (min>max)
	{
		int temp = max;
		max = min;
		min = temp;
	}

	return ( rand() / ( RAND_MAX/(1+max-min) ) + min );
}
